<?php

/**
 * @author      Nguyen Duc Thuan <me@ndthuan.com>
 * @copyright   Copyright (c) 2009 Nguyen Duc Thuan <me@ndthuan.com>
 * @version     $Id: AboutusForm.php 12 2009-11-03 03:17:46Z thuan.nguyen $
 */

class AboutusForm extends Fete_Form
{

    protected $_validators = array(
        'ab_product' => array('NotEmpty'),
        'ab_address' => array('NotEmpty'),
        'ab_phone' => array('NotEmpty'),
        'ab_fax' => array('NotEmpty'),
        'ab_webstie' => array('NotEmpty'),
        'ab_aboutus' => array('NotEmpty'),
        'ab_view' => array('NotEmpty'),
        'ab_fonesp' => array('NotEmpty'),
        'ab_ym' => array('NotEmpty'),
        'ab_skype' => array('NotEmpty')
    );
    protected $_filters = array(
        'aboutusid' => array('Trim', 'Intval'),
        'ab_product' => array('Trim'),
        'ab_address' => array('Trim', 'GetLeft:255'),
        'ab_phone' => array('Trim', 'GetLeft:255'),
        'ab_fax' => array('Trim', 'GetLeft:255'),
        'ab_webstie' => array('Trim', 'GetLeft:255'),
        'ab_aboutus' => array('Trim'),
        'ab_view' => array('Trim', 'Intval'),
        'ab_fonesp' => array('Trim', 'GetLeft:20'),
        'ab_ym' => array('Trim', 'GetLeft:20'),
        'ab_skype' => array('Trim', 'GetLeft:20')
    );
}
